﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LinksManage.aspx.cs" Inherits="RichECMS.ServerPages.Links.AddLink" %>
<%@ Import Namespace="Common" %>
<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager, Version=7.2.0.0, Culture=neutral, PublicKeyToken=fb0a0fe055d40fd4" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link href="../../sysCommon/sysStyle/Pages.css" type="text/css" rel="stylesheet" />
    <link href="../../sysCommon/sysStyle/style.css" type="text/css" rel="stylesheet" />
    <script src="../../sysCommon/sysScripts/jquery.js" type="text/javascript"></script>
    <script src="../../sysCommon/sysScripts/cboxCheckAll.js" type="text/javascript"></script>
    <script src="../../sysCommon/sysScripts/parent1.js" type="text/javascript"></script>
    <script src="../../sysCommon/sysScripts/commompage.js" type="text/javascript"></script>
    <style type="text/css">
        .articleinfotable
        {
            display: none;
        }
        .articleinfo
        {
            height: 44px;
            width: 100%;
        }
        .articleinfo div
        {
            margin: 2px 40px 2px 40px;
            overflow: auto;
            height: 40px;
            color: #46594f;
        }
        .page div.sabrosus a
        {
            height: 15px;
            line-height: 15px;
            overflow: hidden;
        }
    </style>
     <script src="../../sysCommon/sysScripts/parent1.js" type="text/javascript"></script>
    <script src="../../sysCommon/sysScripts/commompage.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        $(document).ready(function () {
            $(".isdelete").bind("click", function () {
                if (!confirm('确定要删除这条信息吗?')) {
                    return false;
                }
            });
        })

    </script>
    <script src="../../sysCommon/sysScripts/parent1.js" type="text/javascript"></script>
    <script src="../../sysCommon/sysScripts/commompage.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
   <div class="main_body">
        <div class="right_body">
            <div class="right_top">
                <a href="###">CMS内容管理平台</a>><a href="###">友情链接</a><asp:Literal ID="LitPaagePath" runat="server"></asp:Literal>
            </div>
            <div class="title">
                <div class="information">
                    <asp:Literal ID="LitPageName" runat="server"></asp:Literal></div>
                <div style="float: right; margin-right: 30px;display:none;">
                    <a href="~/ServerPages/Section/Update.aspx" id="btnSection" runat="server">栏目简介</a>
                </div>
            </div>
            <div class="search_title">
                <div class="title_name">
                    搜索</div>
                <div class="s_menu">
                    <img src="../../sysCommon/sysImages/menu_top.jpg" width="16" height="33" /><!--<img src="../Section/image/systerm/menu_down.jpg" width="16" height="33" />-->
                </div>
            </div>
            <div class="search_box" style="height: 30px;">
                <table border="0" align="left" cellpadding="0" cellspacing="0" style="width: 100%">
                    
                    <tr>
                        <td align="left" valign="middle" height="25" style="padding-bottom: 10px;">
                            <table width="670" border="0" cellpadding="0" cellspacing="0" align="left">
                                <tr>
                                    <td align="left" valign="middle" height="25" width="60">
                                        标&nbsp;&nbsp;&nbsp;&nbsp;题：
                                    </td>
                                    <td align="left" valign="middle" width="522" style="padding-right: 10px;">
                                        <input type="text" style="width: 522px;" runat="server" id="txtTitle" />
                                    </td>
                                    <td align="left" valign="middle" width="78">
                                        <a href="###" title="搜索" style="display: block; width: 78px; width: 21px;">
                                            <asp:ImageButton ID="ImageButton1" runat="server" Width="78" Height="21" alt="搜索"
                                                ImageUrl="../../sysCommon/sysImages/search_button.jpg" OnClick="ImageButtonsearch" />
                                        </a>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="news_box">
                <table border="0" align="left" cellpadding="0" cellspacing="0" style="width: 100%">
                    <tr>
                        <td align="left" valign="middle" background="../../sysCommon/sysImages/title_bg1.jpg"
                            style="border-bottom: #d6d6d6 solid 1px; padding-left: 20px;" height="31">
                            <ul>
                                <li class="one"><a href="Add.aspx" title="添加" runat="server" id="btnAdd">
                                    <img src="../../sysCommon/sysImages/n_menu_1.jpg" alt="添加" width="54" height="31" /></a></li>
                                <li class="one"><a href="#" title="编辑">
                                    <img src="../../sysCommon/sysImages/n_menu_2.jpg" alt="编辑" width="56" height="31" /></a></li>
                                <li class="one">
                                    <asp:ImageButton ID="btnSort" runat="server" ImageUrl="../../sysCommon/sysImages/n_menu_3.jpg"
                                        alt="排序" Width="61" Height="31" OnClick="btnSort_Click" />
                                </li>
                                <li class="one">
                                    <input type="image" src="../../sysCommon/sysImages/n_menu_4.jpg" width="62" height="31" />
                                </li>
                                <li class="one"><a href="###" title="重置">
                                    <img src="../../sysCommon/sysImages/n_menu_5.jpg" alt="重置" width="62" height="31" /></a>
                                </li>
                                <li class="one">
                                    <asp:ImageButton runat="server" Width="89" Height="31" ImageUrl="../../sysCommon/sysImages/n_menu_6.jpg"
                                        OnClick="btnDeleteAll_Click" OnClientClick="return CheckItem('d');" ID="btnDelete" />
                                </li>
                                <li class="last">
                                    <asp:ImageButton ID="btnRecovery" runat="server" Width="97" Height="31" ImageUrl="../../sysCommon/sysImages/n_menu_7.jpg"
                                        OnClick="btnRecovery_Click" />
                                </li>
                            </ul>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="middle" height="30" background="../../sysCommon/sysImages/list_bg_1.jpg">
                            <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" height="30">
                                <tr>
                                    <td align="center" valign="middle" width="3%" height="30">
                                        <input type="checkbox" id="cbAll" value="复选框" />
                                    </td>
                                    <td align="center" valign="middle" width="4%">
                                        编号
                                    </td>
                                    <td align="center" valign="middle" width="45%">
                                        标题
                                    </td>
                                    <td align="center" valign="middle" width="7%">
                                        状态
                                    </td>
                                    <td align="center" valign="middle" width="11%">
                                        作者/来源
                                    </td>
                                    <td align="center" valign="middle" width="15%">
                                        上传时间
                                    </td>
                                    <td align="center" valign="middle" width="15%">
                                        操作
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand">
                        <ItemTemplate>
                            <tr>
                                <td style="display: block;">
                                    <div>
                                        <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"
                                            height="29" style="border-top: #d6d6d6 solid 1px;">
                                            <tr>
                                                <td align="center" valign="middle" width="3%" height="30">
                                                    <label>
                                                        <input type="checkbox" name="iptckb" value="<%#Eval("intArticleID") %>" id="CheckboxGroup<%#Eval("intArticleID") %>" />
                                                    </label>
                                                </td>
                                                <td align="center" valign="middle" width="4%">
                                                    <%#Eval("intArticleID") %>
                                                </td>
                                                <td align="center" valign="middle" width="2%">
                                                    <img src="../../sysCommon/sysImages/wen.gif" width="10" height="29" />
                                                </td>
                                                <td align="left" valign="middle" width="43%">
                                                    <a href="###" class="showarticleinfo">
                                                        <%#Eval("chvTitle") %></a>
                                                </td>
                                                <td align="center" valign="middle" width="7%">
                                                    <span style='color: #D80404;'>
                                                        <%#Eval("intState").ToString()=="0"?"未发布":"已发布" %></span>
                                                </td>
                                                <td align="center" valign="middle" width="11%">
                                                    <%#Eval("chvArticleInMan").ToString().Trim().Length!=0?Eval("chvArticleInMan"):"未填写"%></a>
                                                </td>
                                                <td align="center" valign="middle" width="15%">
                                                    <%#Convert.ToDateTime(Eval("dtmInTime")).ToString("yyyy年MM月dd日 HH:mm") %>
                                                </td>
                                                <td align="center" valign="middle" width="15%">
                                                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" height="29">
                                                        <tr>
                                                            <td align="right" width="26%" valign="middle" style="background: url(../../sysCommon/sysImages/line_2.gif) right  top no-repeat;
                                                                padding-right: 5px;">
                                                                <a href='<%# AppConfig.GetIsShtml()==1?"/news/ahtml/A__"+Eval("intArticleID")+".shtml":"/news/ahtml/A__"+Eval("intArticleID")+".html" %>'
                                                                    title="查看新闻页面" target="_blank">
                                                                    <img src="../../sysCommon/sysImages/Article.png" alt="查看" width="16" height="16" /></a>
                                                            </td>
                                                            <td align="right" width="16%" valign="middle" style="background: url(../../sysCommon/sysImages/line_2.gif) right  top no-repeat;
                                                                padding-right: 5px;">
                                                                <a href='../Article/Update.aspx?Id= <%#Eval("intArticleID") %>' title="编辑">
                                                                    <img src="../../sysCommon/sysImages/bianji.gif" alt="编辑" width="15" height="29" /></a>
                                                            </td>
                                                            <td align="center" width="16%" valign="middle" style="background: url(../../sysCommon/sysImages/line_2.gif) right top no-repeat;">
                                                                <asp:ImageButton ID="ImageButton2" ToolTip="放入回收站" CommandArgument='<%#Eval("intArticleID") %>'
                                                                    CommandName="Recycle" runat="server" ImageUrl="../../sysCommon/sysImages/huishou.gif"
                                                                    Width="14" Height="29" />
                                                            </td>
                                                            <td align="left" width="42%" valign="middle" style="padding-left: 5px;">
                                                                <asp:ImageButton ID="btnDeleteOne" CssClass="isdelete" ToolTip="删除" CommandArgument='<%#Eval("intArticleID") %>'
                                                                    CommandName="Delete" runat="server" ImageUrl="../../sysCommon/sysImages/shanchu.gif"
                                                                    Width="14" Height="29" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr class="articleinfotable">
                                <td>
                                    <div>
                                        <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"
                                            height="46" style="border-top: #d6d6d6 solid 1px;">
                                            <tr>
                                                <td align="left" valign="middle" width="3%" height="46">
                                                    <div class="articleinfo">
                                                        <div>
                                                            <%#Eval("chvSummary").ToString().Length == 0 ? "无简介" : Eval("chvSummary")%></div>
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </div>
            <div class="pages_box" style="clear: both; height: 30px; overflow: hidden; margin-top: 0px;">
                <div class="p_info">
                    共有 <span style="color: #417DB7">
                        <asp:Literal runat="server" ID="LitPageCount"></asp:Literal></span> 条&nbsp;&nbsp;&nbsp;&nbsp;当前
                    第 <span style="color: #417DB7">
                        <asp:Literal runat="server" ID="LitPageCurrent"></asp:Literal></span> 页</div>
                <div class="page" style="float: right; height: 30px;">
                    <div class="sabrosus">
                        <webdiyer:AspNetPager ID="AspNetPagerList" runat="server" AlwaysShow="true" FirstPageText="首页"
                            LastPageText="尾页" NextPageText="下一页" PageSize="15" PrevPageText="上一页" ShowInputBox="Always"
                            ShowNavigationToolTip="True" OnPageChanged="AspNetPagerArticle_PageChanged" NumericButtonCount="5">
                        </webdiyer:AspNetPager>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <asp:HiddenField ID="SortHidden" runat="server" Value="" />
    </form>
</body>
</html>
